import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import Health from '@/views/Health.vue'
import Menstrual from '@/views/Menstrual.vue'
import Profile from '@/views/Profile.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      title: '首页',
      icon: 'home-o'
    }
  },
  {
    path: '/health',
    name: 'Health',
    component: Health,
    meta: {
      title: '健康记录',
      icon: 'records-o'
    }
  },
  {
    path: '/menstrual',
    name: 'Menstrual',
    component: Menstrual,
    meta: {
      title: '经期日历',
      icon: 'calendar-o'
    }
  },
  {
    path: '/profile',
    name: 'Profile',
    component: Profile,
    meta: {
      title: '我的',
      icon: 'user-o'
    }
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
